<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<!DOCTYPE html>
<html>
<meta charset="utf-8">
<%@ include file="/WEB-INF/views/include/header.jsp"%>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-cmsCategory-edit" object="${cmsCategory}">
        <input id="catId" name="catId"  type="hidden">
        <div class="form-group">
            <label class="col-sm-3 control-label">站点编号：</label>
            <div class="col-sm-8">
                <input id="siteId" name="siteId" value="${siteId}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">栏目编码：</label>
            <div class="col-sm-8">
                <input id="catCode" name="catCode" value="${catCode}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">父级编号：</label>
            <div class="col-sm-8">
                <input id="parentId" name="parentId" value="${parentId}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">栏目名称：</label>
            <div class="col-sm-8">
                <input id="catName" name="catName" value="${catName}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">栏目英文：</label>
            <div class="col-sm-8">
                <input id="catEnglish" name="catEnglish" value="${catEnglish}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">栏目图：</label>
            <div class="col-sm-8">
                <input id="image" name="image" value="${image}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">页面标题：</label>
            <div class="col-sm-8">
                <input id="title" name="title" value="${title}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">关键词：</label>
            <div class="col-sm-8">
                <input id="keywords" name="keywords" value="${keywords}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">描述文字：</label>
            <div class="col-sm-8">
                <input id="description" name="description" value="${description}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">链接：</label>
            <div class="col-sm-8">
                <input id="catUrl" name="catUrl" value="${catUrl}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">栏目模型：</label>
            <div class="col-sm-8">
                <input id="catModelid" name="catModelid" value="${catModelid}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">文档模型：</label>
            <div class="col-sm-8">
                <input id="newsModelid" name="newsModelid" value="${newsModelid}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">栏目模板：</label>
            <div class="col-sm-8">
                <input id="catTemplate" name="catTemplate" value="${catTemplate}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">文档模板：</label>
            <div class="col-sm-8">
                <input id="newsTemplate" name="newsTemplate" value="${newsTemplate}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">是否生成栏目页：</label>
            <div class="col-sm-8">
                <input id="isGenerateNode" name="isGenerateNode" value="${isGenerateNode}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">是否生成文档页：</label>
            <div class="col-sm-8">
                <input id="isGenerateNews" name="isGenerateNews" value="${isGenerateNews}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">栏目页扩展名：</label>
            <div class="col-sm-8">
                <input id="catExt" name="catExt" value="${catExt}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">文档页扩展名：</label>
            <div class="col-sm-8">
                <input id="newsExt" name="newsExt" value="${newsExt}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">栏目路径：</label>
            <div class="col-sm-8">
                <input id="catPath" name="catPath" value="${catPath}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">文档路径：</label>
            <div class="col-sm-8">
                <input id="newsPath" name="newsPath" value="${newsPath}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">是否默认页：</label>
            <div class="col-sm-8">
                <input id="isDefPage" name="isDefPage" value="${isDefPage}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">静态页生成方式(0:手动生成;1:自动生成栏目页;2:自动生成文档页及栏目页;3:自动生成文档页、栏目页、父栏目页、首页)：</label>
            <div class="col-sm-8">
                <input id="staticMethod" name="staticMethod" value="${staticMethod}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">栏目列表静态化页数：</label>
            <div class="col-sm-8">
                <input id="staticPage" name="staticPage" value="${staticPage}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">小图：</label>
            <div class="col-sm-8">
                <input id="smallImage" name="smallImage" value="${smallImage}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">大图：</label>
            <div class="col-sm-8">
                <input id="largeImage" name="largeImage" value="${largeImage}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">审核状态0、待审核  1、通过 2、未通过：</label>
            <div class="col-sm-8">
                <input id="checkStatus" name="checkStatus" value="${checkStatus}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">状态:0、删除 1、正常 2、禁止：</label>
            <div class="col-sm-8">
                <input id="status" name="status" value="${status}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">是否显示0、不显1、显示：</label>
            <div class="col-sm-8">
                <input id="isShow" name="isShow" value="${isShow}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">排序：</label>
            <div class="col-sm-8">
                <input id="sort" name="sort" value="${sort}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">备注：</label>
            <div class="col-sm-8">
                <input id="remark" name="remark" value="${remark}" class="form-control" type="text">
            </div>
        </div>
    </form>
</div>
<%@ include file="/WEB-INF/views/include/footer.jsp"%>
<script type="text/javascript">
    var prefix = ctx + "cms/category"
    $("#form-cmsCategory-edit").validate({
        rules:{
            xxxx:{
                required:true,
            },
        }
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/edit", $('#form-cmsCategory-edit').serialize());
        }
    }
</script>
</body>
</html>
